<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>发送短信记录</title>
</head>
<body>
<form id="send_note_form" method="post" action="${pageContext.request.contextPath}/note/listSendHistory">
    <input type="hidden" name="pageNum" value="1" />  
    <input type="hidden" name="numPerPage" value="${pageView.pageSize}" />
    <input type="hidden" name="hqId" value="${hqId}" />
</form>
<div class="pageHeader" id="station_search_div">
	<form onsubmit="return navTabSearch(this);" action="${pageContext.request.contextPath}/note/listSendHistory" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>总部编码</label>
				<input style="width:75px" type="text" name="hqId"  value="${hqId}" />
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<!-- <li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li> -->
			</ul>
		</div>
	</div>
	</form>
</div>


<div class="pageContent">
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
	 			<option value="5" <c:if test="${pageView.pageSize==5}">selected</c:if>>5</option>
	 			<option value="10" <c:if test="${pageView.pageSize==10}">selected</c:if>>10</option>
			</select>
			<span>条，共${pageView.rowCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${pageView.rowCount}" numPerPage="${pageView.pageSize}" pageNumShown="10" currentPage="${pageView.pageNow}"></div>
	</div>
	<table class="table" width="100%" layoutH="116">
		<thead>
			<tr>
				<th width="100">会员ID</th>
				<th width="100">会员手机号</th>
				<th width="100">剩余数量</th>
				<th width="110">短信类别名</th>
				<th width="110">时间</th>
			</tr>
		</thead>
	<tbody>
		<volist id="vo" name="list">
			<c:forEach items="${pageView.records}" var="bean" varStatus="status">
				<tr id="tr_${bean.memberId}"  target="sid_user" rel="${bean.memberId}">
					<td>${bean.memberId}</td>
					<td>${bean.memberPhoneNum}</td>
					<td>${bean.balanceCnt}</td>
					<td>${bean.smsTypeName}</td>
					<td>${bean.createdTime}</td>
				</tr>
			</c:forEach>
			</volist>
		</tbody>
	</table>
	
</div>
</body>
<script type="text/javascript">
	function dialogAjaxDone(json){
	    DWZ.ajaxDone(json);
	    if (json.statusCode == DWZ.statusCode.ok){
	        if (json.navTabId){
	            navTab.reload(json.forwardUrl, {navTabId: json.navTabId});
	        } else if (json.rel) {
	            var $pagerForm = $("#send_note_form", navTab.getCurrentPanel());
	            var args = $pagerForm.size()>0 ? $pagerForm.serializeArray() : {}
	            navTabPageBreak(args, json.rel);
	        }
	        if ("closeCurrent" == json.callbackType) {
	            $.pdialog.closeCurrent();
	        }
	    }
	}
</script>
</html>